home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ MSO2K Options 2.xpl < prev    next >
Text File  |  2000-08-07  |  1KB  |  75 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="2"
  4. "UIPATH"="Program Options\Microsoft Office\MS Office 2000\Excel 2000"
  5. "NAME"="Excel Options"
  6. "VERSION"="1.05"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Always display four digit year values in Excel"
  9. "TEXT 2"="Force Excel to display extended characters correctly"
  10. "DESCRIPTION 1"="Some options for Microsoft Excel 2000"
  11. "AUTHOR"="Xteq Systems"
  12. "CONTACTURL"="http://www.xteq.com"
  13. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  14. "COMMENT 1"=" "
  15.  
  16.  
  17. sV1="HKCU\Software\Policies\Microsoft\Office\9.0\Excel\Options\EnableFourDigitYearDisplay" 'DW
  18. sV2="HKCU\Software\Microsoft\Office\9.0\Excel\Options\FontSub" 'DW
  19.  
  20.  
  21. sPCheck="HKCU\Software\Microsoft\Office\9.0\"
  22. Sub Plugin_Initialize 
  23. if RegPathExists(sPCheck) then
  24.  i=RegReadValue(sV1)
  25.  if i=1 then SetUiElement 1,true
  26.  
  27.  i=RegReadValue(sV2)
  28.  if IsEmpty(i)=true then 
  29.     SetUiElement 2,false
  30.  else
  31.     if i=0 then SetUiElement 2,true
  32.  end if
  33.  
  34.  
  35.  'i=RegReadValue(sV3)
  36.  'if i<>1 then SetUiElement 3,true
  37. else
  38.  disable()
  39. end if
  40. End Sub
  41.  
  42.  
  43. Sub Plugin_CheckData(ElementIndex)
  44. End Sub
  45.  
  46.  
  47.  
  48. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  49.  if GetUIElement(1)=true then
  50.     i=1
  51.  else
  52.     i=0
  53.  end if
  54.  Call RegWriteValue(sV1,i,2)
  55.  
  56.  if GetUIElement(2)=true then
  57.     i=0
  58.  else
  59.     i=1
  60.  end if
  61.  Call RegWriteValue(sV2,i,2)
  62.  
  63.  
  64.  
  65.  
  66.  Call Logoff()
  67. End Sub
  68.  
  69.  
  70. Sub Plugin_Terminate 
  71. End Sub
  72.  
  73.  
  74.  
  75.